Abou Al Montacir [Sun, 17 May 2026 11:31:42 +0000 (12:31 +0100)]
Change path of unit files to make it support MA co-installation.
Bug-Debian: http://bugs.debian.org/73368
Last-Update: Wed, 15 Jan 2025 00:05:11 +0100
(Closes: Bug#73368)
This patch was modified to fix default value of FPCDIR on ppc64el causing test
suite of Castle Game Engine to break on that target.
Gbp-Pq: Name fix-units-path-to-be-multi-arch-safe.patch
Paul Gevers [Sun, 17 May 2026 11:31:42 +0000 (12:31 +0100)]
Reproducible builds requires that the build time stamp is not
recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.
Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
Abou Al Montacir [Sun, 17 May 2026 11:31:42 +0000 (12:31 +0100)]
Align fp IDE template file paths with Debian standards
The fp IDE looks for template files in /usr/bin where itself is installed.
However this is not conform with Debian standard for file locations.
This patch fixes this by making the IDE looking for templates in the base
installation directory.
Location of IDE template files in Debian distribution is:
/usr/lib/$(DEB_TARGET_MULTIARCH)/fpc/3.2.2/ide/
as for examples:
/usr/lib/x86_64-linux-gnu/fpc/3.2.2/ide
/usr/lib/arm-linux-gnueabihf/fpc/3.2.2/ide
index 54d0ffd1..39ae6079 100644
This patch adds an utility for computing relative path according to a given
base directory. This is useful for libraries that are to install .lpk in
order to be used with lazarus. As these libraries may be compiled without
need to build depend on Lazarus, we add it in fp-utils package which is likely
to be used by any big project which build depends on fp-compiler.